﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage_Sub.master" AutoEventWireup="true"
    CodeFile="allreports.aspx.cs" Inherits="search" Title="大众防骗"
    EnableViewState="false" EnableEventValidation="false" ViewStateEncryptionMode="Never" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Search" runat="Server">
    <h2>
        查询综合信息</h2>
    <div id="numsearch">
        输入任意信息关键字，获得最新相关信息的详细报告</div>
    <div id="search">
        <%--    
    <DIV>--%>
        <label for="reporter">
            您的举报内容：</label>
        <div>
            <%--                                                                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                                    <ContentTemplate>
            --%>
            <asp:DropDownList ID="DropDownList_type" runat="server" AppendDataBoundItems="False"
                DataSourceID="ObjectDataSource_type" DataTextField="type" DataValueField="id"
                Height="20px" BackColor="#FFFFDC" Width="71px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_type_SelectedIndexChanged">
                <asp:ListItem Selected="True" Value="0">请选择举报类别</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="TextBox_input" onblur="blurReporter()" onfocus="focusReporter()"
                runat="server" Width="180px" ReadOnly="False" Text="请输入关键字..." onclick="if(this.value=='请输入关键字...')this.value='';"
                onmouseout="if(this.value=='')this.value='请输入关键字...';" Height="21px" BackColor="#FFFFDC"
                BorderColor="#7F9DB9" BorderStyle="Solid" BorderWidth="1px" Font-Bold="false"
                Font-Size="14px" />
            <asp:Button ID="Button_search" runat="server" Text="搜索" class="l" Width="45px" Height="25px"
                OnClick="Button_search_Click" />
            <asp:Button ID="Button_report" runat="server" class="l" Text="我要举报" Height="25px"
                Width="60px" OnClick="Button_report_Click" />
            <asp:ObjectDataSource ID="ObjectDataSource_type" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="Get_Data_OrderBy_id" TypeName="DataSet_fp_DyhTableAdapters.Dyh_typeTableAdapter">
            </asp:ObjectDataSource>
            <%--                                                                    </ContentTemplate>
                                                                </asp:UpdatePanel> 
            --%>
        </div>
        <%--</DIV>--%>
        <div class="hint">
            <asp:RegularExpressionValidator ID="Validator1" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*电话/手机号码有误，由数字组成。如:01066881238 或 13912345678！"
                ValidationExpression="\d{3}[0-9]+" Visible="False"></asp:RegularExpressionValidator>
            <asp:RegularExpressionValidator ID="Validator2" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*您输入的网站地址有误，请重新输入。如:http://www.abc.net 或 www.abc.net ！"
                ValidationExpression="(http(s)?://)?([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" Visible="False"></asp:RegularExpressionValidator>
            <asp:RegularExpressionValidator ID="Validator3" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*您输入的身份证号码有误！请确保号码位数(18/15位)，以及出生日期正确。" ValidationExpression="\d{6}\d{2}\d{2}\d{2}[0-3][0-9]\d{3}[\d|X]|\d{15}"
                Visible="False"></asp:RegularExpressionValidator>
            <asp:RegularExpressionValidator ID="Validator4" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*您输入的银行账号格式不正确！" ValidationExpression="[0-9]+"
                Visible="False"></asp:RegularExpressionValidator>
            <asp:RegularExpressionValidator ID="Validator5" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*您输入的QQ号码有误！QQ号码至少在4位数以上，且第一位数不能为0。" ValidationExpression="[1-9]\d{3}[0-9]+"
                Visible="False"></asp:RegularExpressionValidator>
            <asp:RegularExpressionValidator ID="Validator6" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*您输入的邮箱地址格式不正确！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                Visible="False"></asp:RegularExpressionValidator>
            <asp:RegularExpressionValidator ID="Validator7" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*您输入的网店格式不正确！" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"
                Visible="False"></asp:RegularExpressionValidator>
            <asp:RegularExpressionValidator ID="Validator8" runat="server" ControlToValidate="TextBox_input"
                Enabled="False" ErrorMessage="*您输入的信息格式不正确！" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"
                Visible="False"></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="Validator01" runat="server" ControlToValidate="TextBox_input"
                ErrorMessage="*  输入框不能为空，请重新输入！" Display="Dynamic" Visible="False" Enabled="False"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="Validator0" runat="server" ControlToValidate="TextBox_input"
                ErrorMessage="* 请输入有效的查询值！" InitialValue="请输入关键字..." Display="Dynamic" Enabled="False"
                Visible="False"></asp:RequiredFieldValidator>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowSummary="False"
                DisplayMode="List" EnableClientScript="False" />
            <asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="TextBox_input"
                ErrorMessage="CustomValidator" Display="Dynamic" ValidationGroup="customvalid"></asp:CustomValidator>
            <%--            如: 13812345678、010-87654321或fpsjk.com
            --%>
        </div>
    </div>
    <div id="numlink" class="numlink">
    </div>
    <div>
    </div>
    <h2>
        用户举报的综合信息</h2>
    <div id="reports">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:ListView ID="ListView1" runat="server" DataKeyNames="id" DataSourceID="ObjectDataSource_Latest_Report_Data">
                    <LayoutTemplate>
                        <ul id="itemPlaceholderContainer" runat="server" style="">
                            <li id="itemPlaceholder" runat="server" />
                        </ul>
                        <div style="text-align: right" dir="ltr" enableviewstate="False">
                            更多举报内容： &nbsp;
                            <asp:DataPager ID="DataPager1" runat="server" PageSize="25">
                                <Fields>
                                    <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True" ShowNextPageButton="False"
                                        ShowPreviousPageButton="True" ShowLastPageButton="False" />
                                    <asp:NumericPagerField ButtonCount="10" />
                                    <asp:NextPreviousPagerField ButtonType="Link" ShowLastPageButton="True" ShowNextPageButton="True"
                                        ShowPreviousPageButton="False" />
                                </Fields>
                            </asp:DataPager>
                        </div>
                    </LayoutTemplate>
                    <EmptyDataTemplate>
                        未返回数据。
                    </EmptyDataTemplate>
                    <ItemTemplate>
                        <li style="" title=".">
                            <div class="item">
                                <div class="title">
                                    [<b><%# Eval("typename").ToString().Trim() %></b>]&nbsp;&nbsp;<a href="javascript:void(0);"
                                        onclick="window.location='./detail.aspx?sel=<%# Eval("type") %>&keyword=<%# Eval("object") %>';return false;"><%# Eval("R_type") %>：<%# Eval("object") %></a></div>
                                <div class="meta">
                                    <span class="author">
                                        <%# Eval("IP_from")%></span>于<%# (System.DateTime.Now.Date - Convert.ToDateTime(Eval("time")).Date).Days < 2 ? ((System.DateTime.Now.Date - Convert.ToDateTime(Eval("time")).Date).Days == 0 ? "今日 " + Convert.ToDateTime(Eval("time").ToString()).ToLongTimeString() : "昨日 " + Convert.ToDateTime(Eval("time")).ToLongTimeString()) : Eval("time")%><%--<%# Eval("time") %>--%>
                                </div>
                                <div class="detail">
                                    <%# Eval("R_content") %>
                                    <%--                    恭喜您！您的手机号码被《非常6+1》栏目中砸中参与资格，请登录cctv255.com查收！验证码：7117 免费咨询热线
                    
                    <a href="javascript:void(0);" onclick="window.location='http://www.soudianhua.com/Phone.aspx?number=4006786383';return false;">400-678-6383</a>”发信息的手机号码是：13229058504
                                    --%>
                                    <%--                                    <br /><br />
                                    --%>
                                </div>
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:ListView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:ObjectDataSource ID="ObjectDataSource_Latest_Report_Data" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="Get_All_Data_Order_By_Time" TypeName="DataSet_fp_DyhTableAdapters.Dyh_reportTableAdapter">
        </asp:ObjectDataSource>
    </div>
</asp:Content>
